package com.yanfan.maintain.domain;

import com.yanfan.common.annotation.Excel;
import com.yanfan.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 【请填写功能名称】对象 control_formwork_device
 *
 * @author kerwincui
 * @date 2023-03-16
 */
public class ControlFormworkDevice extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 设备id
     */
    @Excel(name = "设备id")
    private Long deviceId;

    /**
     * 设备名称
     */
    @Excel(name = "设备名称")
    private String deviceName;

    /**
     * 排序字段
     */
    @Excel(name = "排序字段")
    private Integer sortNumber;

    /**
     * 执行模式等待上台设备完成，异步
     */
    @Excel(name = "执行模式等待上台设备完成，异步")
    private Integer execModel;

    /**
     * 创建人
     */
    @Excel(name = "创建人")
    private String createName;

    /**
     * 模型id
     */
    @Excel(name = "模型id")
    private Long formworkId;

    /**
     * 触发规则文本
     */
    @Excel(name = "触发规则文本")
    private String ruleText;

    /**
     * 反控文本
     */
    @Excel(name = "反控文本")
    private String actionText;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(Long deviceId) {
        this.deviceId = deviceId;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }

    public Integer getSortNumber() {
        return sortNumber;
    }

    public void setSortNumber(Integer sortNumber) {
        this.sortNumber = sortNumber;
    }

    public Integer getExecModel() {
        return execModel;
    }

    public void setExecModel(Integer execModel) {
        this.execModel = execModel;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public Long getFormworkId() {
        return formworkId;
    }

    public void setFormworkId(Long formworkId) {
        this.formworkId = formworkId;
    }

    public String getRuleText() {
        return ruleText;
    }

    public void setRuleText(String ruleText) {
        this.ruleText = ruleText;
    }

    public String getActionText() {
        return actionText;
    }

    public void setActionText(String actionText) {
        this.actionText = actionText;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceId", getDeviceId())
                .append("deviceName", getDeviceName())
                .append("sortNumber", getSortNumber())
                .append("execModel", getExecModel())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .append("createBy", getCreateBy())
                .append("createName", getCreateName())
                .append("formworkId", getFormworkId())
                .append("ruleText", getRuleText())
                .append("actionText", getActionText())
                .toString();
    }
}
